distance turtle-name

Reports the distance between the current turtle and the turtle indicated.

Example: 

In this example, there are two turtles on the page.

t1, 
show distance "t2
122    Your answer will be different.
towards "t2
fd distance "t2
  T1 meets t2.

Set t1 to go Many Times and define the go procedure as follows. T1 will be "trapped" around t2:

to go
fd 1
if 100 < distance "t2 [towards "t2]
end